package tools;

import java.util.List;
import java.util.Properties;

// Sin probar. Puede fallar mucho
public class OptionManager {
	private static final String DEBUG = "debug";
	private static final String LANG = "lang";
	private static final String LANG_AVAILABLE = "langavailable";
	
	private static final String propsFileName = ""; 
	private static Properties properties;
	
	public static void loadOptions(){
		properties = FileManager.readProperties(System.getProperty("user.dir"),propsFileName);
	}
	public static void saveOptions(){
		FileManager.writeProperties(properties, propsFileName);
	}
	

	// Testear
	public static boolean getDebug(){
		// Esta cadena hay que cambiarla!
		String debug = properties.getProperty(DEBUG);
		
		return debug.equalsIgnoreCase("true");		
	}
	
	public static String getLangCode(){
		return null;
		
	}
	
	public static void setDebug(boolean debug){
		
	}
	
	public static void setLangCode(String code){
		
	}
	
	public static List<String> getAvailableLangs(){
		return null;
		
	}
}
